package group2assignone.view;

import javax.swing.*;

/**
 * Function with default panels to provide 'base layout' for the GUI designs.
 * @author group2
 */
public abstract class OurView extends JFrame {

    protected JPanel northPanel = new JPanel();
    protected JPanel eastPanel = new JPanel();
    protected JPanel westPanel = new JPanel();
    protected JPanel centerPanel = new JPanel();
    protected JPanel southPanel = new JPanel();

    /**
     * Function to set up default panels and gui settings. 
     */
    public void go() {

        UITool.addPanels(northPanel, southPanel, eastPanel, westPanel, centerPanel, this);
        addComponents();
        UITool.setUp(this);
    }

    /**
     * Function to add specific components and layouts to the default panels.
     */
    abstract public void addComponents();
}
